﻿using System;
using System.Collections.Generic;
using System.Text;
using Framework.Platform.Components.UI.View;

namespace Framework.Platform.Components.Exceptions
{
    public class ViewValidateException : Exception
    {
        private IView _View;

        public IView View
        {
            get { return _View; }
            set { _View = value; }
        }

        private IList<FieldValidateException> _FieldExceptions;

        public IList<FieldValidateException> FieldExceptions
        {
            get
            {
                if (_FieldExceptions == null)
                {
                    _FieldExceptions = new List<FieldValidateException>();
                }
                return _FieldExceptions;
            }
            set { _FieldExceptions = value; }
        }
    }
}
